﻿@model MvcAlumnos.Models.Inscripcion

@{
    ViewBag.Title = "Nueva Inscripción";
}
<form method="post" action="@Url.Action("Create", "Inscripcion")">
    <fieldset>
        <legend>Nueva Inscripción</legend>
        <label for="materia_id">Materia</label>
        <div class="row">
            <div class="col-xs-4">
                <select name="materia_id" size="1" class="form-control">
                    <option selected value="0" style="display: none">Materia</option>
                    @foreach (var item in ViewBag.Materias)
                    {
                        <option value="@item.Id">@item.Nombre</option>
                    }
                </select>
            </div>
        </div>
        <label for="alumno_nombre">Alumno</label>
        <div class="row">
            <div class="col-xs-4">
                <select name="alumno_id" size="1" class="form-control">
                    <option selected value="0" style="display: none">Alumno</option>
                    @foreach (var item in ViewBag.Alumnos)
                    {
                        <option value="@item.Id">@item.Nombre @item.Apellido</option>
                    }

                </select>
            </div>
        </div>
        <br />
        <input class="btn btn-primary" type="submit" value="Create" />
    </fieldset>
</form>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
